/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nxlv2.nomad.accessdb.dao;

import com.nxlv2.nomad.businessobjects.Adresse;
import com.nxlv2.nomad.businessobjects.Commande;
import com.nxlv2.nomad.businessobjects.DetailCommande;
import com.nxlv2.nomad.businessobjects.Satisfaction;
import java.util.List;

/**
 *
 * @author Nastasia
 */
public interface ICommandeDao {
    
    void saveCommande(Commande commande) throws DAOException;
    void deleteCommande(int id) throws DAOException;
    void updateCommande(Commande commande) throws DAOException;
    Commande findCommandeById(int id) throws DAOException;
      
    List<DetailCommande> getDetailCommandesParCommande(Commande commande) throws DAOException;
    List<DetailCommande> getDetailCommandesMajParCommande(Commande commande) throws DAOException;
    void lierDetailCommandeACommande(DetailCommande detailCommande, Commande commande)throws DAOException;
    
    void lierSatisfactionACommande(Satisfaction satisfaction, Commande commande)throws DAOException ;
    List<Satisfaction> getSatisfactionParCommande(Commande commande) throws DAOException;
}
